package xyz.jcat.security;

import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;

@Getter
@Setter
public class RoleGrantedAuthority implements GrantedAuthority {

    private Long roleId;

    @Override
    public String getAuthority() {
        return this.roleId.toString();
    }

    public RoleGrantedAuthority(Long roleId) {
        this.roleId = roleId;
    }
}
